import http from "@/api/http";

export function getQuestionPage(query: object) {
  return http.get({
    url: "/content/question/page",
    params: query
  });
}

export function getQuestion(questionId: number) {
  return http.get({
    url: "/content/question/" + questionId
  });
}

export function saveQuestion(obj: object) {
  return http.post({
    url: "/content/question",
    data: obj
  });
}

export function updateQuestion(obj: object) {
  return http.put({
    url: "/content/question",
    data: obj
  });
}

export function delQuestion(questionId: any) {
  return http.delete({
    url: "/content/question/" + questionId
  });
}
